<?php  
#php命名空间例子
    use root\Lib1 as L;  
    use root\Lib250\MyClass as Obj;  
    use root\Lib250 as lisa;
     
    header('Content-type: text/plain');  
    require_once('lib1.php');  
    require_once('lib2.php');  
     
    echo L\MYCONST . "\n";  
    echo L\MyFunction() . "\n";  
    echo L\MyClass::WhoAmI() . "\n";  
    echo Obj::WhoAmI() . "\n";  
    echo lisa\MYCONST;
?>  
